<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" type="text/css" href="pagination.css">
</head>
<body>
	<div id="app" style="margin:200px 600px">
		<pagination :show-pages="showPages" :total-pages="totalPages" ref="pagination"></pagination>
		<p>{{this.$refs.curPage}}</p> <!-- $refs 也不是响应式的，因此你不应该试图用它在模版中做数据绑定。 -->
	</div>
</body>
<script src="../js/vue/vue.min.2.4.2.js"></script>
<script src="pagination.js"></script>
<script type="text/javascript">
	var app1 = new Vue({
		el: "#app",
		data: {
			showPages: 	5,
			totalPages: 20
		},
		components: {
			'pagination': pagination
		}
	})
</script>
</html>